package com.leesche.zcsp.node.web.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.leesche.zcsp.node.web.dao.PubPlaceDao;
import com.leesche.zcsp.node.web.model.PubPlace;
import com.leesche.zcsp.node.web.model.PubPlaceCriteria;
import com.leesche.zcsp.node.web.service.PubPlaceService;
import com.leesche.zcsp.node.web.service.impl.data.read.PubPlaceDto;
import com.leesche.zcsp.node.web.service.impl.data.read.QueryPubPlaceCondition;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Title: PubPlaceServiceImpl.java
 * @Package com.leesche.zcsp.node.service.impl
 * @Description:()
 * @author dennies yang
 * @date 2016年9月22日 下午4:24:23
 * @version V1.0
 */
@Service
@Transactional
public class PubPlaceServiceImpl
		extends
		BaseServiceImpl<PubPlace, PubPlaceCriteria, PubPlaceDto, QueryPubPlaceCondition, Long>
		implements PubPlaceService {
	@Autowired
	private PubPlaceDao pubPlaceDao;

	@Autowired
	public void setBaseDao(PubPlaceDao pubPlaceDao) {
		super.setBaseDao(pubPlaceDao);
	}

	@Override
	public List<PubPlaceDto> findPubPlaceList(QueryPubPlaceCondition condition) {
		return pubPlaceDao.findPubPlaceList(condition);
	}

	@Override
	public PubPlaceDto findDevicePlace(QueryPubPlaceCondition condition) {
		return pubPlaceDao.findDevicePlaceList(condition);
	}

	@Override
	public List<Long> findPlaceDeviceIds(QueryPubPlaceCondition condition) {
		return pubPlaceDao.findPlaceDeviceIds(condition);
	}
}
